﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;

namespace Ashlen.Portal.Web.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index() {
            ViewData["Title"] = Ashlen.Portal.Data.SqlServer.UtilityDao.Instance.GetConfig(Ashlen.Portal.Data.SqlServer.Constants.APPLICATION, "ApplicationName") + " - Home Page";
            ViewData["Message"] = "Welcome to !" + Ashlen.Portal.Data.SqlServer.UtilityDao.Instance.GetConfig(Ashlen.Portal.Data.SqlServer.Constants.APPLICATION, "ApplicationName");

            return View();
        }

        public ActionResult About() {
            ViewData["Title"] = Ashlen.Portal.Data.SqlServer.UtilityDao.Instance.GetConfig(Ashlen.Portal.Data.SqlServer.Constants.APPLICATION, "ApplicationName") + " - About Page";
            ViewData["Message"] = Ashlen.Portal.Data.SqlServer.UtilityDao.Instance.GetConfig(Ashlen.Portal.Data.SqlServer.Constants.APPLICATION, "ApplicationName") +
                " is a state of the art framework designed to provide the foundations for a SECURE FAST and EASY way to build the next generation of web applications." + 
                " Incorporating the best of SOA, the aim of this project is to become the one of the best solutions for building portals for communities.";

            return View();
        }
    }
}
